﻿@using Mysoft.Platform.OnlineLibrary.Models
@model Mysoft.Platform.OnlineLibrary.Models.BookModel

@{
	ViewBag.Title = "明源图书馆";
	Layout = "~/Views/Shared/_Layout.cshtml";
}
@using( Html.BeginForm("Index", "BookManage", FormMethod.Post, new { @class = "form-inline" }) )
{
	<div class="form-search well">
		<select id="queryType">
			<option value="1">按书名</option>
			<option value="2">按图书编号</option>
			<option value="3">按ISBN</option>
			<option value="4">按分类</option>
		</select>
		<div class="input-append input-prepend">
			<input type="text" class="input-large"/>
			<button class="btn">查找</button>
		</div>
		<div class="btn-group" style="margin-left: 50px;">
			<button class="btn input-prepend">新增</button>
			<input type="submit" class="btn input-prepend" value="保存" />
		</div>
		<label class="label label-info">@ViewBag.Info</label>
	</div>

	<div class="container">
		<div class="row-fluid">
			<div class="span12">
				<div class="span3">
					<img class="img-polaroid img-rounded block" src="" alt="封面" />
				</div>
				<div class="span9 show-grid">
					<div class="row tr-placeholder span12">
						<div class="span2"><label class="control-label" for="BookName">书名：</label></div>
						<div class="span4">@Html.TextBoxFor(m => m.BookName, new { id = "BookName", @class = "span12" })</div>
					</div>
					<div class="row span12">
						<div class="span2"><label class="control-label" for="Author">作者：</label></div>
						<div class="span4">@Html.TextBoxFor(m => m.Author, new { id = "Author", @class = "span12" })</div>
						<div class="span2"><label class="control-label" for="TranslationAuthor">译作者：</label></div>
						<div class="span4">@Html.TextBoxFor(m => m.TranslationAuthor, new { id = "TranslationAuthor", @class = "span12" })</div>
					</div>
					<div class="row span12">
						<div class="span2"><label class="control-label" for="ISBN">ISBN：</label></div>
						<div class="span4">@Html.TextBoxFor(m => m.ISBN, new { id = "ISBN", @class = "span12" })</div>
						<div class="span2"><label class="control-label" for="BookSerialNo">图书编号：</label></div>
						<div class="span4">@Html.TextBoxFor(m => m.BookSerialNo, new { id = "BookSerialNo", @class = "span12" })</div>
					</div>
					<div class="row span12">
						<div class="span2"><label class="control-label" for="CategoryName">分类：</label></div>
						<div class="span4">@Html.TextBoxFor(m => m.CategoryName, new { id = "CategoryName", @class = "span12" })</div>
						<div class="span2"><label class="control-label" for="Price">单价：</label></div>
						<div class="span4">@Html.TextBoxFor(m => m.Price, new { id = "Price", @class = "span12" })</div>
					</div>
					<div class="row span12">
						<div class="span2"><label class="control-label" for="Press">出版社：</label></div>
						<div class="span4">@Html.TextBoxFor(m => m.Press, new { id = "Press", @class = "span12" })</div>
						<div class="span2"><label class="control-label" for="PublishDate">出版日期：</label></div>
						<div class="span4">@Html.TextBoxFor(m => m.PublishDate, new { id = "PublishDate", @class = "span12" })</div>
					</div>
					<div class="row span12">
						<div class="span2"><label class="control-label" for="Brief">简介：</label></div>
						<div class="span10">@Html.TextAreaFor(m => m.Brief, new { id = "Brief", @class = "span12", rows = 10 })</div>
					</div>
				</div>
			</div>
		</div>
	</div>
}